package com.wx.bootsecurity.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author 阿尔法哲
 * @since 2021-07-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="WxUserPermissionRelation对象", description="")
public class WxUserPermissionRelation extends Model<WxUserPermissionRelation> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;

    private Long userId;

    private Long permissionId;

    private Boolean type;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
